'Declaration
Public Overridable Function NewDocumentAsync( _ Optional ByVal reportErrors As System.Boolean, _ Optional ByVal askToSaveChanges As System.Boolean _ ) As NPromise(Of Boolean)
'Usage
Dim instance As NDocumentView(Of TDoc,TDocContent,TDocFormat,TDocFormatRegistry,TDocLoadSettings,TDocSaveSettings) Dim reportErrors As System.Boolean Dim askToSaveChanges As System.Boolean Dim value As NPromise(Of Boolean) value = instance.NewDocumentAsync(reportErrors, askToSaveChanges)
public virtual NPromise<bool> NewDocumentAsync( System.bool reportErrors, System.bool askToSaveChanges )
Parameters
- reportErrors
- whether errors should be reported to the user
- askToSaveChanges
- whether the user should be prompted to save changes to the document, if it is modified
Return Value
a promise which resolves to true, if a new document was successfully created and loaded in the view, otherwise false